﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MaskedInput.aspx.cs" Inherits="Plugins_MaskedInput" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="DemoTitleContentPlaceHolder" Runat="Server">
A Masked Input Plugin  (http://digitalbush.com/projects/masked-input-plugin/)
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="DemoContentPlaceHolder" Runat="Server">

<cc1:ScriptManager ID="ScriptManager1" runat="server">
<cc1:Script ID="Script1" runat="server" name="maskedinput" LocalResource="true" ResourceAssemblyName="jQueryDotNet.Extras" ResourceTypeName="jQueryDotNetLib.Extras.Extenders.MaskedInput" reference="jQueryDotNet.Extras.js.jquery.maskedinput-1.2.2.min.js" />
</cc1:ScriptManager>

Date <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>  99/99/9999     <asp:RequiredFieldValidator ControlToValidate="TextBox2" ID="RequiredFieldValidator1" runat="server" ErrorMessage="This field is required" /> <br />
Phone <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>  (999) 999-9999  <br />
Phone + Ext <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> (999) 999-9999? x99999  <br />
Tax ID <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox> 99-9999999  <br />
SSN <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>  999-99-9999  <br />
Product Key <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox> a*-999-a999  <br />
Eye Script <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox> ~9.99 ~9.99 999  <br />


    

<cc3:MaskedInput Placeholder="*" OnClientCompleted="function(){alert('You Typed:' + this.val())};" ID="MaskedInput1" Mask="99/99/9999" runat="server" Selector="#{TextBox2}"></cc3:MaskedInput>
<cc3:MaskedInput ID="MaskedInput2" Mask="(999) 999-9999" runat="server" Selector="#{TextBox3}"></cc3:MaskedInput>
<cc3:MaskedInput ID="MaskedInput3" Mask="(999) 999-9999? x99999" runat="server" Selector="#{TextBox4}"></cc3:MaskedInput>
<cc3:MaskedInput ID="MaskedInput4" Mask="99-9999999" runat="server" Selector="#{TextBox5}"></cc3:MaskedInput>
<cc3:MaskedInput ID="MaskedInput5" Mask="999-99-9999" runat="server" Selector="#{TextBox1}"></cc3:MaskedInput>
<cc3:MaskedInput ID="MaskedInput6" Mask="a*-999-a999" runat="server" Selector="#{TextBox6}"></cc3:MaskedInput>
<cc3:MaskedInput ID="MaskedInput7" Mask="~9.99 ~9.99 999" runat="server" Selector="#{TextBox1}"></cc3:MaskedInput>

    <asp:Button ID="Button1" runat="server" 
        Text="Button to trigger the standard validation" onclick="Button1_Click" />
<asp:Label runat="server" ID="ResponseLabel"></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SourceContentPlaceHolder" Runat="Server">
</asp:Content>

